.console__body .modal .GenericModal,
.app__body .modal .GenericModal {
    &__location--top {
        margin-top: 5vh;
    }

    &__location--center {
        margin-top: calc(50vh - 240px);
    }

    &__location--bottom {
        margin-top: calc(50vh + 240px);
    }

    &.modal-overflow {
        .modal-body {
            overflow: visible;
        }
    }

    .no-header__img {
        margin-top: -40px;
    }

    .modal-header {
        .GenericModal__header__text_container {
            margin-top: 8px;
            width: 100%;

            .modal-subheading-container {
                color: rgba(var(--center-channel-color-rgb), 0.75);
            }
        }

        div#genericModalSubheading {
            font-size: 12px;
            margin-block: 10px;
        }
    }

    .modal-body {
        padding: 0;

        &.divider {
            border-top: var(--border-light);
        }

        .form-control {
            height: 40px;
            box-sizing: border-box;
            border: var(--border-default);
            border-radius: 4px;

            &.form-control--lg {
                height: 48px;
                font-size: 16px;
                padding-left: 16px;
                padding-right: 16px;

                & + .input-clear {
                    top: 17px;
                    right: 16px;
                }
            }

            &:focus {
                border-color: var(--button-bg);
                box-shadow: 0 0 0 1px var(--button-bg);
            }

            &.has-error {
                border-color: var(--error-text);
            }
        }

        .MaxLengthInput {
            &.form-control.has-error {
                padding-right: 66px;
            }

            &__validation {
                position: absolute;
                top: 12px;
                right: 56px;
                color: var(--error-text);
                font-size: 14px;
                font-style: normal;
                font-weight: normal;
                line-height: 16px;
            }
        }

        .input-wrapper {
            position: relative;
        }

        .input-clear {
            top: 12px;
            right: 12px;
            width: 16px;
            height: 16px;
            color: var(--center-channel-color);
            font-size: 18px;
            font-style: normal;
            font-weight: normal;
            line-height: 16px;
            opacity: 0.48;
        }
    }

    &.GenericModal__compassDesign {
        .modal-content {
            max-height: 90vh;

            .modal-body {
                .GenericModal__body {
                    padding: 0;

                    &.padding {
                        padding: 8px 32px 0;
                    }
                }
            }

            .genericModalError {
                display: flex;
                box-sizing: border-box;
                flex: 1;
                padding: 14px 32px;
                border: 1px solid rgba(var(--dnd-indicator-rgb), 0.16);
                margin-bottom: 24px;
                background: rgba(var(--dnd-indicator-rgb), 0.08);
                border-radius: var(--radius-s);

                span {
                    color: var(--center-channel-color);
                    font-size: 14px;
                    font-weight: 600;
                    line-height: 24px;
                }

                i {
                    margin-right: 8px;
                    color: var(--error-text);
                    font-size: 24px;
                    line-height: 24px;

                    &::before {
                        margin: 0;
                    }
                }
            }
        }
    }

    @media screen and (max-width: 640px) {
        margin: 0 !important;

        .modal-header {
            box-shadow: var(--elevation-2);
        }
    }

    &__wrapper-enter-key-press-catcher {
        width: 100%;
        height: 100%;
    }
}
